/*******************************************************************************
 * Copyright (c) 2005, 2014 springside.github.io
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *******************************************************************************/
package net.wofly.sale.report.repository;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import net.wofly.sale.report.domain.SaleStockDailyReport;

import java.util.List;

public interface SaleStockDailyReportRepository
		extends PagingAndSortingRepository<SaleStockDailyReport, String>, JpaSpecificationExecutor<SaleStockDailyReport> {

	List<SaleStockDailyReport> findByUserIDAndCountDate(String userID, Long countDate);

	List<SaleStockDailyReport> findByCountDate(Long countDate);

	int deleteByCountDate(Long countDate);
}